const {setMaxDigits, RSAKeyPair, encryptedString} = require("./rsa.js")


function result(publicKey) {
    function rsaEncrypt(value) {
        setMaxDigits(129);
        var rsaKey = new RSAKeyPair(publicKey.split(",")[0], "", publicKey.split(",")[1]);
        var valueRtn = encryptedString(rsaKey, value);
        return valueRtn;
    }

    var rsaAccount = rsaEncrypt("13105009999");
    var rsaPassword = rsaEncrypt("123456");
    return {
        rsaAccount,
        rsaPassword
    }

}
